home *** CD-ROM | disk | FTP | other *** search
/ Delphi 5 for Professionals / DELPHI5.iso / AddOns / Components / InstallMaster 7.03 / Devfulldemo.exe / file0193.bin < prev    next >
Encoding:
Wise script  |  1999-04-26  |  3.3 KB  |  155 lines

  1. Document Type: WSE
  2. item: Global
  3.   Version=5.0
  4.   Title=Searching for Files Sample
  5.   Flags=00000100
  6.   Split=1420
  7.   Languages=65 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  8.   Copy Default=1
  9.   Japanese Font Name=MS Gothic
  10.   Japanese Font Size=10
  11.   Start Gradient=0 0 255
  12.   End Gradient=0 0 0
  13.   Windows Flags=00000000000000010000110000001000
  14.   Message Font=MS Sans Serif
  15.   Font Size=8
  16.   Disk Filename=SETUP
  17.   Patch Flags=0000000000000001
  18.   Patch Threshold=85
  19.   Patch Memory=4000
  20. end
  21. item: Remark
  22. end
  23. item: Remark
  24.   Text=     This sample demonstrates the usage of the Search for File and
  25. end
  26. item: Remark
  27.   Text=     Find File in Path script items.
  28. end
  29. item: Remark
  30. end
  31. item: Remark
  32.   Text=     First, search for a file with a given name on all local drives.
  33. end
  34. item: Remark
  35. end
  36. item: Search for File
  37.   Variable=WISE_PATH
  38.   Pathname List=WISE.EXE
  39.   Default=<not found>
  40.   Description=Searching for WISE.EXE, Please Wait...
  41. end
  42. item: Display Message
  43.   Title=WISE.EXE Pathname
  44.   Text=The pathname for the first occurance of WISE.EXE is: %WISE_PATH%.
  45. end
  46. item: Remark
  47. end
  48. item: Remark
  49.   Text=     Next, search for the same file but include network drives. In addition,
  50. end
  51. item: Remark
  52.   Text=     only search three directories deep.
  53. end
  54. item: Remark
  55. end
  56. item: Search for File
  57.   Variable=WISE_PATH
  58.   Pathname List=WISE.EXE
  59.   Default=<not found>
  60.   Description=Searching for WISE.EXE, Please Wait...
  61.   Flags=00011100
  62. end
  63. item: Display Message
  64.   Title=WISE.EXE Pathname
  65.   Text=The pathname for the first occurance of WISE.EXE is: %WISE_PATH%.
  66. end
  67. item: Remark
  68. end
  69. item: Remark
  70.   Text=     Search for SCANDISK.EXE in the currently defined PATH.
  71. end
  72. item: Remark
  73. end
  74. item: Find File in Path
  75.   Variable=SCAN_PATH
  76.   Pathname List=SCANDISK.EXE
  77.   Default=<not found>
  78. end
  79. item: Display Message
  80.   Title=WISE.EXE Pathname
  81.   Text=The pathname for the first occurance of WISE.EXE is: %WISE_PATH%.
  82. end
  83. item: Remark
  84. end
  85. item: Remark
  86.   Text=     Search for SCANDISK.EXE in the Windows, System, and Temporary
  87. end
  88. item: Remark
  89.   Text=     directories.
  90. end
  91. item: Remark
  92. end
  93. item: Find File in Path
  94.   Variable=SCAN_PATH
  95.   Pathname List=SCANDISK.EXE
  96.   Default=<not found>
  97.   Search Directories=%WIN%;%SYS%;%SYS32%;%TEMP%
  98. end
  99. item: Display Message
  100.   Title=WISE.EXE Pathname
  101.   Text=The pathname for the first occurance of WISE.EXE is: %SCAN_PATH%.
  102. end
  103. item: Remark
  104. end
  105. item: Remark
  106.   Text=     Search for application that is associated with the .WSE file extension.
  107. end
  108. item: Remark
  109. end
  110. item: Get Registry Key Value
  111.   Variable=EXT_VALUE
  112.   Key=.wse\shell\command\open
  113. end
  114. item: If/While Statement
  115.   Variable=EXT_VALUE
  116. end
  117. item: Get Registry Key Value
  118.   Variable=EXT_VALUE
  119.   Key=.wse
  120. end
  121. item: If/While Statement
  122.   Variable=EXT_VALUE
  123.   Flags=00000001
  124. end
  125. item: Get Registry Key Value
  126.   Variable=EXT_VALUE
  127.   Key=%EXT_VALUE%\shell\open\command
  128. end
  129. item: End Block
  130. end
  131. item: End Block
  132. end
  133. item: If/While Statement
  134.   Variable=EXT_VALUE
  135.   Flags=00000001
  136. end
  137. item: Parse String
  138.   Source=%EXT_VALUE%
  139.   Pattern= 
  140.   Variable1=EXT_VALUE
  141. end
  142. item: Set Variable
  143.   Variable=EXT_VALUE
  144.   Value=%EXT_VALUE%
  145.   Flags=00010000
  146. end
  147. item: End Block
  148. end
  149. item: Display Message
  150.   Title=WSE Application Pathname
  151.   Text=The pathname for the application associated with the .WSE file extension is: 
  152.   Text=
  153.   Text=%EXT_VALUE%.
  154. end
  155.